<template>
	<view class="page">
		<web-view :src="webViewSrc"></web-view>
	</view>
</template>

<script>
	import base from '@/common/config'
	export default {
		data() {
			return {
				webViewSrc:'',
			}
		},
		methods: {
			
		},
		onLoad() {
			// this.webViewSrc = url.trim()
			// let url = base.baseUrl +'/sys/temp/tempindex'
			// let reduri = 'https://ecard.amass.com.cn/sys/temp/tempindex'
			let reduri= encodeURIComponent(base.baseUrl +'/sys/temp/tempindex');
			let appid = base.oaappid   //公众号的唯一标识
			console.log(appid);
			console.log(reduri);
			// let reduri= encodeURIComponent("https://ecard.dglemin.com.cn/jeecgboot/sys/temp/tempindex");
			
			// let reduri= encodeURIComponent("https://ecard.amass.com.cn/returnPage.html");
			// wx1d6c03e999dc80d8  wx82f12530acaf959f
			let webViewSrc = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appid+"&redirect_uri="+reduri+"&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
			this.webViewSrc = webViewSrc.trim()
			// setTimeout(()=>{
				// uni.switchTab({
				// 	url:'/pages/index/index'
				// })
			// },500)
			
					console.log(this.webViewSrc);
		},
		onShow() {
			
		},
	}
</script>

<style lang="scss" scoped>
.page{
	
}
</style>
